package io.gitee.zhangbinhub.admin.vo

import io.swagger.v3.oas.annotations.media.Schema

@Schema(description = "流程实例")
data class ProcessInstanceVo(
    @field:Schema(description = "流程实例id")
    var processInstanceId: String? = null,
    @field:Schema(description = "流程定义键")
    var processDefinitionKey: String? = null,
    @field:Schema(description = "业务键")
    var businessKey: String? = null,
    @field:Schema(description = "流程名称")
    var flowName: String? = null,
    @field:Schema(description = "标题")
    var title: String? = null,
    @field:Schema(description = "流程描述")
    var description: String? = null,
    @field:Schema(description = "发起人")
    var startUser: UserVo? = null,
    @field:Schema(description = "当前处理人")
    var activityUser: MutableList<UserVo> = mutableListOf(),
    @field:Schema(description = "自定义参数")
    var params: MutableMap<String, Any> = mutableMapOf(),
    @field:Schema(description = "流程节点编码")
    var nodeCode: String? = null,
    @field:Schema(description = "流程节点名称")
    var nodeName: String? = null,
    @field:Schema(description = "开始时间")
    var startTime: Long = 0,
    @field:Schema(description = "更新时间")
    var updateTime: Long = 0,
    @field:Schema(description = "激活状态（0挂起 1激活）")
    var activityStatus: Int? = null,
    @field:Schema(description = "流程状态（0待提交 1审批中 2 审批通过 3自动通过 4终止 5作废 6撤销 7取回 8已完成 9已退回 10失效）")
    var status: String? = null,
    @field:Schema(description = "流程是否结束")
    var finished: Boolean = false
)
